package com.dfbz.demo01_Reader;

import java.io.FileReader;
import java.io.Reader;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_将读取的数据按照偏移量来放置 {


    public static void main(String[] args) throws Exception {
        Reader reader = new FileReader("001.txt");          // 我是中国人

        char[] data = new char[3];

        int len = reader.read(data, 1, 2);
        System.out.println(new String(data));

        reader.close();
    }
}
